# -*- coding:utf-8 -*-
from app import create_app
from gevent.pywsgi import WSGIServer
from gevent import monkey
import logging

app = create_app()
monkey.patch_all()

server = WSGIServer(listener=('127.0.0.1',8080),application=app,log=logging,error_log=logging)

if __name__ == '__main__':
    server.serve_forever()